<!DOCTYPE html>
<html>
<#include "../head.html">
<body class="full">
<table class="mc">
    <tr>
        <td class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                    <#include "left.html">
                </div>
            </div>
            <!--左侧导航---}-->
        </td>
        <td class="mc-m">
            <div class="navToggle"></div>
        </td>
        <td class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="待回复提问">
            <#include "banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
                <!--<div class="toolbor-module search">
                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div>
               
 				<div class="toolbor-module search">
                    <div style="height:22px;line-height:22px;float:left;">时间：</div>
                    <input class="_search-value" name="startTime" id="startTime" value="" size="15" onclick="change_picktime()"/>
                    <div style="height:22px;line-height:22px;float:left;margin:0 8px;"> 到 </div>
                    <input class="_search-value" name="endTime" id="endTime"  value=""  size="15" onclick="change_picktime()"/>
                </div> -->
            </div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>序号(ID)</td>
                            <td>借款标</td>
                            <td>提问者</td>
                            <td>问题</td>
                            <td>提问时间</td>
                            <td>答案</td>
                            <td>回答时间</td> 
                            <td>操作</td>
                        </tr>
                        	<#if list??>
                        	<#list list as item>
                            <tr class="s">
                                <td>${item.id?c}</td>
                                <td>${item.borrow.name!}</td>
                                <td>${item.user.showName!}</td>
                                <td><#if item.question??&&item.question?length gt 20>${item.question[0..20!]}...<#else>${item.question}</#if></td>
                                <td>${item.questionTime}</td>
                                <td>
								<#if item.status==1>
									<#if item.answer??&&item.answer?length gt 20>${item.answer[0..20!]}...<#else>${item.answer}</#if>
								<#else>
								-
								</#if>
								</td>
                                <td><#if item.status==1>${item.answerTime!}<#else>-</#if></td> 
                                <td>
                                	<#if item.status==0>
                                	<a class="un" href="/admin/borrow/question/answer.html?id=${item.id?c}" >回答</a>
                                	<#else>
                                	<span style="color: green;">已回复</span>
                                	</#if>
                                </td>
                            </tr>
                            </#list>
                            </#if>
                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container s_formPage">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

            </div>

        </td>
    </tr>
    <tr>
        <!--尾部--{-->
        <td colspan="3" class="mc-b"><#include "../foot.html"></td>
        <!--尾部--}-->
    </tr>
</table>
</body>
</html>
<#include "../jsPage.html">
